package com.wangijun.yuan.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangijun.yuan.core.domain.ChatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface ChatUserMapper extends BaseMapper<ChatUser> {
    /**
     * 功能描述: 更新最后一条信息
     *
     * @author wlf 2024/8/14 10:10
     */
    int updateLastMsg(@Param("sendUserId") Long sendUserId,
                      @Param("receiveUserId") Long receiveUserId,
                      @Param("lastMsg") String lastMsg,
                      @Param("lastSendTime") LocalDateTime lastSendTime);
}